import request from "@/utils/system/request"

// 获取所有表名
export function getTables(){
    return request({
        url   : "/dm/tables",
        method: "get",
    })
}

// 获取表下所有字段
export function getColumns(tableName){
    return request({
        url   : "/dm/table-columns/" + tableName,
        method: "get",
    })
}

// 根据表名,字段名获取table数据
export function getTableData(data){
    return request({
        url   : "/dm/table-data",
        method: "post",
        data,
    })
}
